package com.yanqu.road.entity.enums.activity.pawnshop;

/**
 * 当铺物件类型
 */
public enum ePawnshopItemType {

	Item("物件", 1), 
	Stone("原石", 2), 
	Gemstone("玉石", 3),
	;

	private String name;
	private int intValue;

	ePawnshopItemType(String name, int value) {
		this.intValue = value;
		this.name = name;
	}

	public int getValue() {
		return intValue;
	}

	public String getName() {
		return name;
	}

	public static ePawnshopItemType forValue(int value) {
		for (ePawnshopItemType type : ePawnshopItemType.values()) {
			if (type.intValue == value) {
				return type;
			}
		}
		return null;
	}
}
